module  Enumerable
  def each_with_counter
    counter = 0
    each do |obj|
      yield(obj, counter)
      counter += 1
    end
  end
end